﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BoundEdit
{
    public class MyPoint
    {
        public static MyPoint Zero = new MyPoint();
        int _x;

        public int X
        {
            get { return _x; }
            set { _x = value; }
        }
        int _y;

        public int Y
        {
            get { return _y; }
            set { _y = value; }
        }

        public MyPoint()
        {
            X = 0;
            Y = 0;
        }

        public MyPoint(int x, int y)
        {
            X = x;
            Y = y;
        }
        public override string ToString()
        {

            return "(" + X.ToString() + "," + Y.ToString() + ")";
        }
    }

    public class MyLine
    {
        MyPoint _pStart;

        public MyPoint Start
        {
            get { return _pStart; }
            set { _pStart = value; }
        }
        MyPoint _pEnd;

        public MyPoint End
        {
            get { return _pEnd; }
            set { _pEnd = value; }
        }

        public MyLine()
        {
            Start = MyPoint.Zero;
            End = MyPoint.Zero;
        }

        public MyLine(MyPoint start,MyPoint end)
        {
            Start = start;
            End = end;
        }

        
    }
}
